import request from '@/utils/request'

// 查询经验库列表
export function getbaseList (query) {
  return request({
    url: '/function/knowledgeData/experience/base/list',
    method: 'get',
    params: query
  })
}
// 查询经验库详情
export function getbasechildren (query) {
  return request({
    url: '/function/knowledgeData/experience/base/' + query,
    method: 'get',
  })
}
// 新增经验库
export function createdbase (data) {
  return request({
    url: '/function/knowledgeData/experience/base',
    method: 'post',
    data: data
  })
}
// 修改经验库
export function updatedbase (data) {
  return request({
    url: '/function/knowledgeData/experience/base',
    method: 'put',
    data: data
  })
}
// 删除经验库
export function deletedbase (data) {
  return request({
    url: '/function/knowledgeData/experience/base/' + data,
    method: 'delete'
  })
}

// 查询保养列表
export function getupkeepList (query) {
  return request({
    url: '/function/upkeep/type/list',
    method: 'get',
    params: query
  })
}